/* 
 * File:   entity_item.hpp
 * Author: jolo
 *
 * Created on 11. Oktober 2011, 13:18
 */

#ifndef WIDGETS_ENTITY_ITEM_HPP
#define	WIDGETS_ENTITY_ITEM_HPP

#include "standard_item.hpp"

class QMenu;
class QWidget;

namespace model
{
    class entity;
    typedef shared_ptr<entity> entity_ptr;
}

namespace widgets
{
    class tree_view;
    class tree_model;
    class tree_view_context_menu;

    class entity_item : public standard_item
    {
    public:
        entity_item(model::entity_ptr e);

        virtual ~entity_item();

        model::entity_ptr entity() const
        {
            return e_;
        }

        tree_view_context_menu* create_context_menu(tree_view* v, tree_model* m);

    private:
        model::entity_ptr e_;
    };
}

#endif	/* ENTITY_ITEM_HPP */

